package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.Value;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "商品实体类")
@TableName(value = "db_goods")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "Goods_id",type = IdType.AUTO)
    @ApiModelProperty(value = "商品唯一编号")
    private String id;

    @TableField(value = "Goods_name")
    @ApiModelProperty(value = "商品名称")
    private String name;

    @TableField(value = "Goods_sort")
    @ApiModelProperty(value = "商品分类")
    private String sort;

    @TableField(value = "Goods_supplier")
    @ApiModelProperty(value = "商品供应商")
    private String supplier;

    @TableField(value = "Goods_standards")
    @ApiModelProperty(value = "商品规格")
    private String standards;
}
